<?php
namespace app\admin\controller\v1;

use app\admin\service\AdminToken;
use app\admin\validate\AdminTokenGet;
use think\Controller;

class Token extends BaseController
{
    public function getToken(){
        (new AdminTokenGet())->goCheck();
        $data = input('post.');
        $model = new AdminToken();
        return successReturn(['token'=>$model->getToken($data)]);
    }
}
